package com.qys.livesMall.app.user.model.vo.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class AppUserGoldRecordVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "金币流水id")
    private Long id;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "变动说明")
    private String remark;

    @Schema(description = "变动前金额")
    private BigDecimal oldGoldAmount;

    @Schema(description = "变动金额")
    private BigDecimal goldAmount;

    @Schema(description = "1=收入,2=支出")
    private Byte incomeType;

    @Schema(description = "订单类型")
    private Byte recordType;

    @Schema(description = "订单类型 1赠送礼物，2兑换金币")
    private String recordTypeStr;

    @Schema(description = "创建时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "订单号")
    private String orderNo;

    /**
     * 图标
     */
    private String icon;
}
